package com.pactera.madp.cp.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @description 客户 - 客户群 关联表
 */
@Data
@TableName("cp_work_contact_room")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "客户 - 客户群 关联表")
public class WorkContactRoomEntity extends BaseEntity<WorkContactRoomEntity> {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "id")
    private String wxUserId;

    @ApiModelProperty(value = "客户id")
    private Integer contactId;

    @ApiModelProperty(value = "员工id")
    private Integer employeeId;

    @ApiModelProperty(value = "仅当群成员类型是微信用户（包括企业成员未添加好友），且企业或第三方服务商绑定了微信开发者id有此字段")
    private String unionid;

    @ApiModelProperty(value = "客户群id")
    private Integer roomId;

    @TableField(exist = false)
    private String roomCase;

    @ApiModelProperty(value = "入群方式1 - 由成员邀请入群（直接邀请入群）2 - 由成员邀请入群（通过邀请链接入群）3 - 通过扫描群二维码入群")
    private Integer joinScene;

    @ApiModelProperty(value = "成员类型（1 - 企业成员 2 - 外部联系人）")
    private Integer type;

    @ApiModelProperty(value = "成员状态。1 - 正常2 -退群")
    private Integer status;

    @ApiModelProperty(value = "入群时间")
    private Date joinTime;

    /**
     * 退群时间, 格式: 时间戳
     */
    @ApiModelProperty(value = "退群时间")
    private String outTime;

}